library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;


entity fulladder is
  port (
    A    : in  std_logic;
    B    : in  std_logic;               -- \
    Cin  : in  std_logic;
    Sum  : out std_logic;
    Cout : out std_logic);
end fulladder;

architecture arch of fulladder is

begin  -- arch

  Sum <= ((A xor B) xor Cin);
  Cout <= ((A and B) or ( Cin and (A or B)));

end arch;
